//
//  NetUrl.h
//  CarHome
//
//  Created by 王建男 on 14-9-17.
//  Copyright (c) 2014年 WJN_work@163.com. All rights reserved.
//

#import <Foundation/Foundation.h>

/// RecommendURL
// 搜索网址
#define SearchURL @"http://app.api.autohome.com.cn/autov4.2/sou/suggestwords.ashx?a=2&pm=1&v=4.2.0&k=%@&t=3"
//最新
#define ScrollURL @"http://app.api.autohome.com.cn/autov4.2/news/newslist-a2-pm2-v4.2.0-c0-nt0-p1-s30-l0.html"
//三张图片相册接口
#define AblumURL @"http://app.api.autohome.com.cn/autov4.2/cars/cardutu-a2-pm1-v4.2.0-ss%d-sp%d-imgid%d-p1-s60-cid0-t0.html"
//推广广告接口
#define GeneralizeURL @"http://app.api.autohome.com.cn/autov4.2/ad/newslistad-a2-pm1-v4.2.0-nt0-p1-nwid0-idfa239A158A-6011-4A39-8C6C-F1937706D506-did4fe7bfa457658ed3405e8e6e64623ced2c435d9f-m0.html"
//新闻,评测,行情,用车,文化,改装,游记,技术,导购
#define NewsListURL @"http://app.api.autohome.com.cn/autov4.2/news/newslist-a2-pm%d-v4.2.0-c0-nt%d-p1-s30-l0.html"
//web接口,新闻类
#define NewsContentURL @"http://cont.app.autohome.com.cn/autov4.2/content/News/newscontent-a2-pm1-v4.2.0-n%d-lz0-sp0-nt0-sa1-p0-c1-fs0-cw320.html"
//web接口,说客类
#define shuokeContentURL @"http://cont.app.autohome.com.cn/autov4.2/content/news/shuokecontent-a2-pm1-v4.2.0-n%d-nt0-lz0-p1-fs0-cw320.html"
//web接口,视频类
#define videosContentURL @"http://cont.app.autohome.com.cn/autov4.2/content/news/videopage-a2-pm1-v4.2.0-vid%d-night0-showpage1-fs0.html"
//web接口,论坛
#define forumContentURL @"http://forum.app.autohome.com.cn/autov4.2/forum/club/topiccontent-a2-pm1-v4.2.0-t%d-o0-p1-s20-c1-nt0-fs0-sp0-al0-cw320.html"
//说客
#define PersuaderURL @"http://app.api.autohome.com.cn/autov4.2/news/shuokelist-a2-pm1-v4.2.0-p1-s30.html"
//视频
#define MovieURL @"http://app.api.autohome.com.cn/autov4.2/news/videos-a2-pm1-v4.2.0-vt0-p1-s30.html"


///  Depredate_depreURL
//降价页面
#define DepreURL @"http://app.api.autohome.com.cn/autov4.2/dealer/pdspecs-a2-pm1-v4.2.0-pi%ld-c%ld-o%ld-b%ld-ss%ld-sp%ld-p%d-s20.html"
//活动页面
#define ActiveURL @"http://app.api.autohome.com.cn/autov4.2/mobile/activitylist-a2-pm2-v4.2.0-c%ld-p1-s20.html"
//城市信息
#define CityURL @"http://app.api.autohome.com.cn/autov4.2/news/province-a2-pm1-v4.2.0-ts0.html"
//汽车品牌
#define BrandUrl @"http://app.api.autohome.com.cn/autov4.2/cars/brandsdealer-a2-pm1-v4.2.0-ts635468101857595282.html"

/// ForumURL
//论坛界面内容
#define DayPicture @"http://app.api.autohome.com.cn/autov4.2/club/jingxuantopic-a2-pm1-v4.2.0-c0-p1-s30.html"
//33个按钮
#define Day33 @"http://app.api.autohome.com.cn/autov4.2/mobile/metadata.ashx?types=newstype%7C0,seriesnews%7C0,piccategory%7C0,videotype%7C0,jingxuan%7C0,dealerscope%7C0,spectestdetail%7C0,seriesclubfilter%7C0,buyorder%7C0,speccompare%7C0"
//汽车分类
#define carcar @"http://app.api.autohome.com.cn/autov4.2/club/clubsseries-a2-pm1-v4.2.0-st0.html"
//省份
#define Province @"http://app.api.autohome.com.cn/autov4.2/club/clubsarea-a2-pm1-v4.2.0-st0.html"
//主题
#define ZhuTi @"http://app.api.autohome.com.cn/autov4.2/club/clubstheme-a2-pm1-v4.2.0-st0.html"

/// FindCar

//全部车辆

#define noMark @"http://app.api.autohome.com.cn/autov4.2/cars/series-a2-pm1-v4.2.0-mip0-map0-l0-c0-b0-st0-mid0-mad0-conf0-o0-p1-s20-bid0-f0.html"

//售卖地址

#define SellCar @"http://app.api.autohome.com.cn/autov4.2/dealer/pddealers-a2-pm1-v4.2.0-sp00000-ss0000-c110100-sc0-p1-s20.html "

//汽车详情

#define DetailCar @"http://app.api.autohome.com.cn/autov4.2/cars/specsummary-a2-pm1-v4.2.0-s00000-c110100.html"

//图片网址

#define Picture @"http://app.api.autohome.com.cn/autov4.2/cars/pics-a2-pm1-v4.2.0-ss0000-sp00000-cg0-cl0-p1-s60-ft2.html"

//配置

#define Equipment @"http://app.api.autohome.com.cn/autov4.2/cars/speccompare-a2-pm1-v4.2.0-t1-s00000.html"

//评分

#define Praise @"http://app.api.autohome.com.cn/autov4.2/alibi/specalibilist-a2-pm1-v4.2.0-sp00000-p1-s20.html"

// 高德地图

#define MapUrl @"http://mo.amap.com/navi/?dest=parameter1&destName=parameter2&hideRouteIcon=1&key=252c0685eebf5bc5c44b69632d3f1d19"

@interface NetUrl : NSObject

+ (void )connect:(NSString *)urlStr parmater:(NSDictionary *)dic Block:(void (^)(NSData *data))block;

+ (BOOL )isExistencenetWork;
+ (BOOL )isExistencenetNot;

@end
